package com.ease.web.xwt.component;

/**
 * 
 * @author nathanleewei
 * 
 */
public class XButton extends XAbstractComponent {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6017454585963452601L;
	protected String onClick;

	public XButton() {
	}

	public XButton(String name, String value, String onClick) {
		this(name, value, null, onClick);
	}

	public XButton(String name, String value, String title, String onClick) {
		this.setName(name);
		this.setValue(value);
		this.setOnClick(onClick);
		this.setTitle(title);
	}

	protected String getTemplate() {
		return TEMPLATE_X_BUTTON;
	}

	public String generate() {
		return super.generate();
	}

	public String getOnClick() {
		return onClick;
	}

	public void setOnClick(String onClick) {
		this.onClick = onClick;
	}
}